//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LivePaperImportProduct implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private String productName;
    private Long productId;
    private Integer state;
    private String filepath;
    private String productDesc;
    private Long importId;
    @TableField(
            exist = false
    )
    private Integer errorCount;

    public LivePaperImportProduct() {
    }

    public Long getId() {
        return this.id;
    }

    public String getProductName() {
        return this.productName;
    }

    public Long getProductId() {
        return this.productId;
    }

    public Integer getState() {
        return this.state;
    }

    public String getFilepath() {
        return this.filepath;
    }

    public String getProductDesc() {
        return this.productDesc;
    }

    public Long getImportId() {
        return this.importId;
    }

    public Integer getErrorCount() {
        return this.errorCount;
    }

    public LivePaperImportProduct setId(final Long id) {
        this.id = id;
        return this;
    }

    public LivePaperImportProduct setProductName(final String productName) {
        this.productName = productName;
        return this;
    }

    public LivePaperImportProduct setProductId(final Long productId) {
        this.productId = productId;
        return this;
    }

    public LivePaperImportProduct setState(final Integer state) {
        this.state = state;
        return this;
    }

    public LivePaperImportProduct setFilepath(final String filepath) {
        this.filepath = filepath;
        return this;
    }

    public LivePaperImportProduct setProductDesc(final String productDesc) {
        this.productDesc = productDesc;
        return this;
    }

    public LivePaperImportProduct setImportId(final Long importId) {
        this.importId = importId;
        return this;
    }

    public LivePaperImportProduct setErrorCount(final Integer errorCount) {
        this.errorCount = errorCount;
        return this;
    }

    public String toString() {
        return "LivePaperImportProduct(id=" + this.getId() + ", productName=" + this.getProductName() + ", productId=" + this.getProductId() + ", state=" + this.getState() + ", filepath=" + this.getFilepath() + ", productDesc=" + this.getProductDesc() + ", importId=" + this.getImportId() + ", errorCount=" + this.getErrorCount() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LivePaperImportProduct)) {
            return false;
        } else {
            LivePaperImportProduct other = (LivePaperImportProduct)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label107: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label107;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label107;
                    }

                    return false;
                }

                Object this$productName = this.getProductName();
                Object other$productName = other.getProductName();
                if (this$productName == null) {
                    if (other$productName != null) {
                        return false;
                    }
                } else if (!this$productName.equals(other$productName)) {
                    return false;
                }

                Object this$productId = this.getProductId();
                Object other$productId = other.getProductId();
                if (this$productId == null) {
                    if (other$productId != null) {
                        return false;
                    }
                } else if (!this$productId.equals(other$productId)) {
                    return false;
                }

                label86: {
                    Object this$state = this.getState();
                    Object other$state = other.getState();
                    if (this$state == null) {
                        if (other$state == null) {
                            break label86;
                        }
                    } else if (this$state.equals(other$state)) {
                        break label86;
                    }

                    return false;
                }

                label79: {
                    Object this$filepath = this.getFilepath();
                    Object other$filepath = other.getFilepath();
                    if (this$filepath == null) {
                        if (other$filepath == null) {
                            break label79;
                        }
                    } else if (this$filepath.equals(other$filepath)) {
                        break label79;
                    }

                    return false;
                }

                label72: {
                    Object this$productDesc = this.getProductDesc();
                    Object other$productDesc = other.getProductDesc();
                    if (this$productDesc == null) {
                        if (other$productDesc == null) {
                            break label72;
                        }
                    } else if (this$productDesc.equals(other$productDesc)) {
                        break label72;
                    }

                    return false;
                }

                Object this$importId = this.getImportId();
                Object other$importId = other.getImportId();
                if (this$importId == null) {
                    if (other$importId != null) {
                        return false;
                    }
                } else if (!this$importId.equals(other$importId)) {
                    return false;
                }

                Object this$errorCount = this.getErrorCount();
                Object other$errorCount = other.getErrorCount();
                if (this$errorCount == null) {
                    if (other$errorCount != null) {
                        return false;
                    }
                } else if (!this$errorCount.equals(other$errorCount)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LivePaperImportProduct;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $productName = this.getProductName();
        result1 = result * 59 + ($productName == null ? 43 : $productName.hashCode());
        Object $productId = this.getProductId();
        result1 = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $filepath = this.getFilepath();
        result1 = result * 59 + ($filepath == null ? 43 : $filepath.hashCode());
        Object $productDesc = this.getProductDesc();
        result1 = result * 59 + ($productDesc == null ? 43 : $productDesc.hashCode());
        Object $importId = this.getImportId();
        result1 = result * 59 + ($importId == null ? 43 : $importId.hashCode());
        Object $errorCount = this.getErrorCount();
        result1 = result * 59 + ($errorCount == null ? 43 : $errorCount.hashCode());
        return result1;
    }
}
